package com.rcn.dal.hibernate;

import com.rcn.dal.interfaces.IManagerDAO;
import com.rcn.dal.interfaces.IPatientDAO;
/**
 *
 * @author Nicolas
 */
public class ManagerDAO implements IManagerDAO{
    private static IManagerDAO managerHibernateDAO;    
    private static IPatientDAO patientDAO;
     
    private ManagerDAO(){}
    
    public static IManagerDAO getInstance(){
        if(managerHibernateDAO==null){
        	managerHibernateDAO=new ManagerDAO();
        }
        return managerHibernateDAO;
    }

    public IPatientDAO getPatientDAO() {
        if(patientDAO==null){
        	patientDAO=new PatientDAO();
        }
        return patientDAO;
    }
}
